package com.zz.tijian.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zz.tijian.entity.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
* @author 17958
* @description 针对表【users】的数据库操作Mapper
* @createDate 2024-06-13 12:04:17
* @Entity generator.domain.Users
*/
public interface UsersMapper extends BaseMapper<Users> {

    @Insert("INSERT INTO users (userId, password, realName, sex, identityCard, birthday, userType) " +
            "VALUES (#{user.userId}, #{user.password}, #{user.realName}, #{user.sex}, #{user.identityCard}, #{user.birthday}, #{user.userType})")
    int insertUser(@Param("user") Users user);

}




